﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DTOService;

namespace DAOService
{
    [ServiceContract]
    public interface IDAOBangDia
    {
        [OperationContract]
        BangDia[] SelectBangDia();
        [OperationContract]
        BangDia[] SelectBangDia(string name);
        [OperationContract]
        int UpdateBangDia(BangDia bd);
        [OperationContract]
        int DeleteBangDia(String mabd);
        [OperationContract]
        bool InsertBangDia(BangDia bd);
        [OperationContract]
        string SetMaBangDia();
        [OperationContract]
        BangDia GetBangDia(string ma);
        [OperationContract]
        int GhiNhanTinhTrang(string ma, int flag);
        [OperationContract]
        BangDia[] TimKiemBangDia(BangDia bd, int pagesize, int skip);
        [OperationContract]
        int NumberBangDia();
        [OperationContract]
        int NumberBangDia(BangDia bd);
        [OperationContract]
        BangDia[] SelectBangDia_Limit(int pagesize,int skip);
        [OperationContract]
        BangDia[] SelectBangDiaThueNhieuNhat();
        [OperationContract]
        BangDia[] ThongKeBangDiaThueNhieu(int thang, int nam);
    }
}
